<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> 武汉同兴一站办企业服务有限公司 管理中心 - 添加分类 </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/Public/Admin/Styles/general.css" rel="stylesheet" type="text/css" />
<link href="/Public/Admin/Styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>
    
    <!--<span class="action-span"><a href="#">商品评价列表</a></span>-->
    <span class="action-span1"><a href="#">武汉同兴一站办企业服务有限公司 管理中心</a></span>
    <span id="search_id" class="action-span1"> - 商品评价列表 </span>
    <div style="clear:both"></div>

</h1>
<div class="main-div">
    
    <form action="" name="searchForm" method="post">
        <img src="/Public/Admin/Images/icon_search.gif" width="26" height="22" border="0" alt="search" />
        <!-- 分类 -->
        <select name="type_id">

            <option  name="type_id" value="0">|&#45;&#45;请选择</option>
            <?php if(is_array($type)): foreach($type as $k=>$vo): ?><option  name="type_id" id="kk<?php echo ($k); ?>" value="<?php echo ($k); ?>" >|&#45;&#45;<?php echo ($vo); ?></option><?php endforeach; endif; ?>

        </select>
    关键字 <input type="text" name="goods_name" size="15" id="key" value=""/>
    排序&nbsp;&nbsp;&nbsp;&nbsp;
        按id<input type="radio" name="pai" checked="checked" id="evaluate_id" value="evaluate_id">
        按评分<input type="radio" name="pai" id='score' value="score">
        按时间<input type="radio" name="pai" id="evaluate_time" value="evaluate_time">
        <input type="submit" value="搜索 " class="button" />
    </form>
<!-- 商品列表 -->

<div class="list-div" id="listDiv">
    <table cellpadding="3" cellspacing="1">
        <tr>
            <th>编号</th>
            <th>供应商</th>
            <th>评价类型</th>
            <th>商品</th>
            <th>用户</th>
            <th>评分</th>
            <th>评价</th>
            <th>晒图</th>
            <th>时间</th>
            <th>点赞</th>
            <th>是否匿名</th>
            <th>状态(是否有效)</th>
            <th>操作</th>
        </tr>
        <?php if(is_array($data)): $sort = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($sort % 2 );++$sort;?><tr>
            <td align="center"><?php echo ($vo["order_id"]); ?></td>
            <td align="center"><span><?php echo ($vo["supplier_ids"]); ?></span></td>
            <td align="center"><span><?php echo ($vo["evaluate_types"]); ?></span></td>
            <td align="center"><span><?php echo ($vo["goods_ids"]); ?></span></td>
            <td align="center"><span><?php echo ($vo["user_ids"]); ?></span></td>
            <td align="center"><span><?php echo ($vo["score"]); ?></span></td>
            <td align="center" width="25%"><span><?php echo ($vo["evaluate"]); ?></span></td>
            <td align="center" width="10%"><img src="<?php echo ($vo["imgs"]); ?>" width="100%" style="height: auto;"/></td>
            <td align="center"><span><?php echo ($vo["evaluate_time"]); ?></span></td>
            <td align="center"><span><?php echo ($vo["praise_num"]); ?></span></td>
            <td align="center"><span><?php echo ($vo["anonymouss"]); ?></span></td>
            <td width="5%"><img src="/Public/Admin/Images/<?php if(($vo["state"]) == "1"): ?>yes.gif<?php else: ?>no.gif<?php endif; ?>"  /></td>
            <td align="center">
            <a href="<?php echo U('evaluatedels','id='.$vo['evaluate_id']);?>" >删除</a>
            </td>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
    </table>

    <!-- 分页开始 -->
    <table id="page-table" cellspacing="0">
        <tr>
            <td align="center" nowrap="true">
              <?php echo ($page); ?>
            </td>
        </tr>
    </table>
    <input type="hidden" id="type_id" value="<?php echo ($type_id); ?>">
    <input type="hidden" id="key_world" value="<?php echo ($key_world); ?>">
    <input type="hidden" id="pai" value="<?php echo ($pai); ?>">
<!-- 分页结束 -->
</div>
    <script type="text/javascript">
       var a=document.getElementById("type_id").value;
       var b=document.getElementById("key_world").value;
       var c=document.getElementById("pai").value;
        if(a==3){
            document.getElementById("kk3").setAttribute('selected','selected');
            document.getElementById("key").setAttribute('value',b);
            if(c=='evaluate_time'){
                document.getElementById("evaluate_id").removeAttribute('checked');
                document.getElementById("score").removeAttribute('checked');
                document.getElementById("evaluate_time").setAttribute('checked','checked');
            }else if(c=='score'){
                document.getElementById("evaluate_id").removeAttribute('checked');
                document.getElementById("evaluate_time").removeAttribute('checked');
                document.getElementById("score").setAttribute('checked','checked');
            }else{
                document.getElementById("score").removeAttribute('checked');
                document.getElementById("evaluate_time").removeAttribute('checked');
                document.getElementById("evaluate_id").setAttribute('checked','checked');
            }
        }else if(a==8){
            document.getElementById("kk8").setAttribute('selected','selected');
            document.getElementById("key").setAttribute('value',b);
            if(c=='evaluate_time'){
                document.getElementById("evaluate_id").removeAttribute('checked');
                document.getElementById("score").removeAttribute('checked');
                document.getElementById("evaluate_time").setAttribute('checked','checked');
            }else if(c=='score'){
                document.getElementById("evaluate_id").removeAttribute('checked');
                document.getElementById("evaluate_time").removeAttribute('checked');
                document.getElementById("score").setAttribute('checked','checked');
            }else{
                document.getElementById("score").removeAttribute('checked');
                document.getElementById("evaluate_time").removeAttribute('checked');
                document.getElementById("evaluate_id").setAttribute('checked','checked');
            }
        }
    </script>

</div>

<div id="footer">
共执行 3 个查询，用时 0.162348 秒，Gzip 已禁用，内存占用 2.266 MB<br />
版权所有 &copy; 2005-2012 武汉同兴一站办企业服务有限公司，并保留所有权利。</div>

</body>
</html>
<script type="text/javascript" src="/Public/Admin/JS/jquery-1.8.3.min.js"></script>